package lpca.test
{
	import adobe.utils.CustomActions;
	import flash.display.Sprite;
	import flash.events.Event;
	import lpca.lpca_api.Matrix;
	/**
	 * Тестирование martix
	 */
	public class TestMatrix extends Sprite 
	{	
		public function TestMatrix()
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
			
			var mat: Matrix = new Matrix(3, 2, new <int>[1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4]);
			mat.show();
			trace('---- 270');
			mat.rotate270().show();
			trace('---- 90');
			mat.rotate90().show();
			trace('---- x');
			mat.mirrorX().show();
			trace('---- y');
			mat.mirrorY().show();
			
			trace("finish");
			
		}
		
		private function init(e:Event = null):void 
		{
		}
		
	}
}	